﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;
using Microsoft.Extensions.Configuration;

namespace Mate.Core.Db
{
    //public class MateCloudDbContext : DapperDbContext, IDapperDbContext
    //{
        //private IDapperRepository<User> _user;

        //public readonly SqlGeneratorConfig _config = new SqlGeneratorConfig
        //{
        //    SqlProvider = SqlProvider.MySQL,
        //    UseQuotationMarks = true
        //};

        //public MateCloudDbContext(IConfiguration configuration)
        //    : base(new MySqlConnection(configuration.GetSection("ConnectionString").Value))
        //{
        //}


        //public IDapperRepository<User> user => _user ?? (_user = new DapperRepository<User>(Connection, _config));

    //}
}
